package casts.facebook
{
   import casts.step.AbstractStep;
   import casts.step.AbstractStepContainer;
   import casts.step.IStep;
   
   import com.facebook.graph.Facebook;
   
   import command.DoTweenMax;
   
   import flash.display.Bitmap;
   import flash.display.Loader;
   import flash.display.MovieClip;
   import flash.events.Event;
   import flash.external.ExternalInterface;
   import flash.net.URLRequest;
   
   import jp.nium.display.getInstanceById;
   import jp.progression.casts.CastMovieClip;
   import jp.progression.commands.display.AddChild;
   import jp.progression.commands.display.RemoveChild;
   
   public class fb_step_1 extends AbstractStep implements IStep
   {
      // fla
      public var btnLoginFB:MyButton;
      
      public function fb_step_1()
      {
         super();
         
         id = 'fb step 1';
         group = 'fb';
         containerId = 'fb main';
      }
      
      // --------------------- LINE ---------------------
      
      public function init():void
      {
      }
      
      public function destroy():void
      {
      }
      
      // ################### protected ##################
      
      override protected function atCastAdded():void
      {
         init();
         
         alpha = 0;
         x = 0;
         y = -10;
         addCommand(
            new DoTweenMax(this, 0.3, { alpha:1, y:0 } )
         );
      }
      
      override protected function atCastRemoved():void
      {
         destroy();
      }
      
      // #################### private ###################
      
      // --------------------- LINE ---------------------
      
   }
   
}